export function apiPromise (interfaceName, body) {
	return new Promise(resolve => {
		uni[interfaceName]({
			...body,
			success: function (res) {
				resolve([res, null])
			},
			fail: function (err) {
				resolve([{}, err])
			}
		})
	})
}